import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/association/getAssociationList',
    method: 'get',
    params
  })
}

export function deleteById(id) {
  return request({
    url: '/association/deleteById/' + id,
    method: 'delete'
  })
}

export function createAssociation(data) {
  return request({
    url: '/association/createAssociation',
    method: 'post',
    data
  })
}

export function updateOwner(data) {
  return request({
    url: `/association/updateOwner`,
    method: 'put',
    data
  })
}
